package com.bytic.miaosha.service;

import com.bytic.miaosha.domain.MiaoshaUser;
import com.bytic.miaosha.domain.OrderInfo;
import com.bytic.miaosha.vo.GoodsVO;

import java.awt.image.BufferedImage;

public interface MiaoshaService {

    public OrderInfo miaosha(MiaoshaUser user, GoodsVO goodsVO);

    public long getMiaoshaResult(long id, long goodsId);

    String createMiaoshaPath(MiaoshaUser user, long goodsId);

    boolean checkMiaoshaPath(MiaoshaUser user, long goodsId, String path);

    BufferedImage createVerifyCode(MiaoshaUser user, long goodsId);

    boolean checkVerifyCode(MiaoshaUser user, long goodsId, int verifyCode);
}
